////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012 Kentaro Sekimoto  All rights reserved.
////////////////////////////////////////////////////////////////////////////

#ifndef FM4_EMAC_LWIP_H_
#define FM4_EMAC_LWIP_H_

#include <tinyhal.h>
#include "FM4_EMAC.h"

#define HW_INTERRUPT            // handle in interrupt routine. completion API not used.
#define ETH_CH0                 // use Ethernet channel
#define FM4_ETHER_PRIORITY 1    // Ethernet interrupt priority

extern NETWORK_CONFIG g_NetworkConfig;
extern int32_t PHY_AutoNegotiate(void);
extern void ETH0_IRQHandler(void* param) __attribute__((interrupt));

#endif /* FM4_EMAC_LWIP_H_ */
